<?php
use dmstr\widgets\Menu;
echo Menu::widget(
            [
                'options' => ['class' => 'sidebar-menu'],
                'items' => [
                    ['label' => 'Menu', 'options' => ['class' => 'header']],
                    [
                        'label' => Yii::t('app', '发布'),
                        'url' => ['/articles/create'],
                        'icon' => 'fa fa-map-o',
                        'active' => 'articles' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('articles/create'),
                    ],
                    [
                        'label' => Yii::t('app', '栏目管理'),
                        'url' => ['/category/index'],
                        'icon' => 'fa  fa-external-link',
                        'active' => 'category' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('category/index'),
                    ],
                    [
                        'label' => Yii::t('app', '文章管理'),
                        'url' => ['/articles/index'],
                        'icon' => 'fa fa-lock',
                        'active' => 'articles' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('articles/index'),
                    ],
                    [
                        'label' => Yii::t('app', '发布会员新闻'),
                        'url' => ['/art/create'],
                        'icon' => 'fa fa-sticky-note-o',
                        'active' => 'art' === Yii::$app->controller->id,
                        'visible' => \Yii::$app->user->can('art/create'),
                    ],
					[
                        'label' => Yii::t('app', '文章审核'),
                        'url' => ['/'],
                        'icon' => 'fa fa-align-left',
                        'items' => [
                            [
                                'label' => Yii::t('app', '待审核文章'),
                                'url' => ['/art/waitcheck'],
                                'icon' => 'fa fa-th-list',
                                'active' => 'art' === Yii::$app->controller->id && 'waitcheck' === Yii::$app->controller->action->id,
								//'visible' => \Yii::$app->user->can('art/waitcheck'),
                            ],

                            [
                                'label' => Yii::t('app', '已审核文章'),
                                'url' => ['/art/check'],
                                'icon' => 'fa  fa-indent',
                                'active' => 'art' === Yii::$app->controller->id && 'check' === Yii::$app->controller->action->id,
								//'visible' => \Yii::$app->user->can('art/check'),
                            ],
                            [
                                'label' => Yii::t('app', '再审核文章'),
                                'url' => ['/art/uncheck'],
                                'icon' => 'fa fa-th-list',
                                'active' => 'art' === Yii::$app->controller->id && 'uncheck' === Yii::$app->controller->action->id,
								//'visible' => \Yii::$app->user->can('art/uncheck'),
                            ],
                        ],
                    ],
                   
                    
                    [
						'url' => ['/'],
                        'label' => Yii::t('app', '广告管理'),
                        'icon' => 'fa fa-twitch',
                        'items' => [
                            [
                                'label' => Yii::t('app', '广告列表'),
                                'url' => ['/ad/index'],
                                'icon' => 'fa  fa-medium',
                                'active' => 'ad' === Yii::$app->controller->id,
                                 'visible' => \Yii::$app->user->can('ad/index'),								
								
                            ],

                            [
                                'label' => Yii::t('app', '广告位列表'),
                                'url' => ['/ad-position/index'],
                                'icon' => 'fa fa-h-square',
                                'active' => 'ad-position' === Yii::$app->controller->id,
								'visible' => \Yii::$app->user->can('ad-position/index'),
                            ],
                        ],
                    ],
                    [
						'url' => ['/'],
                        'label' => Yii::t('app', '友情链接'),
                        'icon' => 'fa fa-maxcdn',
                        'items' => [
                            [
                                'label' => Yii::t('app', '链接类别'),
                                'url' => ['/link-type/index'],
                                'icon' => 'fa fa-sheqel',
                                'active' => 'link-type' === Yii::$app->controller->id,
                                'visible' => \Yii::$app->user->can('link-type/index'),								
					
                            ],

                            [
                                'label' => Yii::t('app', '链接列表'),
                                'url' => ['/friend-link/index'],
                                'icon' => 'fa  fa-subway',
                                'active' => 'friend-link' === Yii::$app->controller->id,
								'visible' => \Yii::$app->user->can('friend-link/index'),

                            ],
                        ],
                    ],
//                   [
//                    'label' => Yii::t('app', '会议管理'),
//                    'url' => ['/meeting/index'],
//                    'icon' => 'fa fa-object-group',
//                    'active' => 'meeting' === Yii::$app->controller->id,
//                    //'visible' => \Yii::$app->user->can('meeting/index'),
//
//                    ],
                    /*[
                        'url' => ['/'],
                        'label' => Yii::t('app', '会议管理'),
                        'icon' => 'fa fa-object-group',
                        'items' => [
                            [
                                'label' => Yii::t('app', '会议管理'),
                                'url' => ['/meeting/index'],
                                'icon' => 'fa fa-sheqel',
                                'active' => 'meeting' === Yii::$app->controller->id,
                                //'visible' => \Yii::$app->user->can('meeting/index'),                              
                    
                            ],

                            [
                                'label' => Yii::t('app', '活动管理'),
                                'url' => ['/activity/index'],
                                'icon' => 'fa  fa-subway',
                                'active' => 'activity' === Yii::$app->controller->id,
                                //'visible' => \Yii::$app->user->can('meeting/index'),

                            ],
                        ],
                    ],*/





                ],
            ]
        )

?>